/*
 * (C) 2014-2015 Alibaba Group Holding Limited
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 *
 *     __  ___   ______        ___       __          ___
 *    |  |/  /  /  __  \      /   \     |  |        /   \
 *    |  '  /  |  |  |  |    /  ^  \    |  |       /  ^  \
 *    |    <   |  |  |  |   /  /_\  \   |  |      /  /_\  \
 *    |  .  \  |  `--'  |  /  _____  \  |  `----./  _____  \
 *    |__|\__\  \______/  /__/     \__\ |_______/__/     \__\
 *
 *
 *
 */
//
// Created by KOALA TEAM on 12/19/14.
//

#import <Foundation/Foundation.h>

@interface NSString (KLRegEx)
- (BOOL)kl_Match:(NSString*)regEx;

//邮箱
+ (BOOL)isValidEmail:(NSString*)email;

//匹配正整数 > 0
+ (BOOL)isValidUnsignedInteger:(NSString*)numberStr;
//匹配负整数 < 0
+ (BOOL)isValidNegativeInteger:(NSString*)numberStr;
//匹配整数 !=0
+ (BOOL)isValidSignedInteger:(NSString*)numberStr;

//匹配非负整数（正整数 + 0）>=0
+ (BOOL)isValidNotNegativeInteger:(NSString*)numberStr;
//匹配非正整数（负整数 + 0）<=0
+ (BOOL)isValidNotUnsignedInteger:(NSString*)numberStr;


//匹配正浮点数 >0
+ (BOOL)isValidUnsignedFloat:(NSString*)numberStr;
//匹配负浮点数 <0
+ (BOOL)isValidNegativeFloat:(NSString*)numberStr;
//匹配浮点数 !=0
+ (BOOL)isValidFloat:(NSString*)numberStr;
//匹配非负浮点数（正浮点数 + 0） >=0
+ (BOOL)isValidNotNegativeFloat:(NSString*)numberStr;
//匹配非正浮点数（负浮点数 + 0 <=0
+ (BOOL)isValidNotUnsignedFloat:(NSString*)numberStr;

@end
